package com.zhiche.lisa.bms.enums;

import com.google.common.collect.Lists;
import org.apache.commons.collections4.CollectionUtils;

import java.util.List;

/**
 * @author: linbao
 * @date: 2019-05-31
 */
public enum WaybillStateEnum {
    ATTRIBUTE_3("前置库订单"),

    DESCRIPTION_ARRIVE("已运抵"),
    DESCRIPTION_DELIVER("已交付"),
    DESCRIPTION_PUT_STORAGE("已入库"),
    DESCRIPTION_RECEIPT("已回单"),

    POD_STATUE_NO_RECEIPT("无回单"),
    POD_STATUE_HAVE_RECEIPT("已回单"),
    POD_STATUE_TENDER("已交单"),

    DEST_LOCATION_GID("前置库");

    private final String code;

    public String getCode() {
        return code;
    }

    WaybillStateEnum(String code) {
        this.code = code;
    }

    private static List<String> podStatusList;

    public static List<String> getPodStatusList() {
        if (CollectionUtils.isEmpty(podStatusList)) {
            podStatusList = Lists.newArrayList();
            podStatusList.add("无回单");
            podStatusList.add("已回单");
            podStatusList.add("已交单");
        }
        return podStatusList;
    }
}
